package com.gdpu.project.dao.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.gdpu.project.dao.UserDao;
import com.gdpu.project.vo.User;

public class UserDaoImpl extends HibernateDaoSupport implements UserDao {

	public Boolean exitUser(String name, String password) {
		User user=(User)getHibernateTemplate().get("com.gdpu.project.vo.User",1);
		if(user.getName().equals(name)&&user.getPassword().equals(password)){
			return true;
		}else {
			return false;
		}
		
	}

}
